<?php

	require_once('../smarty_admin.php');

	$catalog_id = (int)$_GET['catalog_id'];
	$id = (int)$_GET['thongtin_id'];
	//var_dump($id);
	
	if ($id > 0) 
	{	
		
		$sql = "DELETE FROM `thongtins` WHERE `thongtins`.`id` = '$id' LIMIT 1";
		mysql_query($sql);
	}
	header("Location: thongtin.php?catalog_id=$catalog_id" );
//$smarty->display('thongtin/thongtin.tpl');
?>

